<html><head><title>RemovePreferenceGroup</title></head>
<body bgcolor="#EFF1F0" link="#3A3966" vlink="#000000" alink="#000000">
<font face="Verdana, sans-serif" size="2"><p align="center"><b><font size="4">RemovePreferenceGroup()</font></b></p>
<p><b>Syntax</b></p><blockquote>
<font color="#3A3966"><b>RemovePreferenceGroup</b></font>(Group$)</blockquote>

</blockquote>
<b>Description</b><br><blockquote>

Removes the specified 'Group$' and all its keys. 

</blockquote><p><b>Parameters</b></p><blockquote>
<style type="text/css">
table.parameters { border-spacing: 0px; border-style: none; border-collapse: collapse; }
table.parameters td { border-width: 1px; padding: 6px; border-style: solid; border-color: gray; vertical-align: top; font-family:Arial; font-size:10pt; }
</style>
<table width="90%" class="parameters">
<tr><td width="10%"><i>Group$</i></td>
<td width="90%"> 
The group name to remove. 

</td></tr>
</table>
</blockquote><p><b>Return value</b></p><blockquote>
None.


</blockquote><p><b>Example</b></p><blockquote>

<pre><font face="Courier New, Courier, mono"size="2">  <font color="#3A3966">; Create the preference file prefs.txt</font>
  <b><font color="#3A3966">If</font></b> <font color="#3A3966">CreatePreferences</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;, <font color="#924B72">#PB_Preference_GroupSeparator</font>)

<font color="#3A3966">    PreferenceGroup</font>(&quot;Window&quot;)
<font color="#3A3966">      WritePreferenceLong </font>(&quot;X&quot;, 100)
<font color="#3A3966">      WritePreferenceLong </font>(&quot;Y&quot;, 125)
<font color="#3A3966">      WritePreferenceString</font>(&quot;Title&quot;, &quot;PureNote&quot;)
      
<font color="#3A3966">      PreferenceGroup</font>(&quot;event&quot;)
<font color="#3A3966">      WritePreferenceString</font>(&quot;percentage&quot;, &quot;percentage&quot;)
<font color="#3A3966">      WritePreferenceFloat</font>(&quot;%&quot;, 100)
      
<font color="#3A3966">      ClosePreferences</font>()
    
<font color="#3A3966">      RunProgram</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;)
    <b><font color="#3A3966">EndIf</font></b>  
    
<font color="#3A3966">    MessageRequester</font>(&quot;Info&quot;, &quot;Delete the group 'event' &quot;)
    
  <font color="#3A3966">; Open a preference file</font>
<font color="#3A3966">    OpenPreferences</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;)
    
  <font color="#3A3966">; Delete the group 'event'  </font>
<font color="#3A3966">    RemovePreferenceGroup</font>(&quot;event&quot;)
    
<font color="#3A3966">    ClosePreferences</font>()
      
<font color="#3A3966">    RunProgram</font>(<font color="#3A3966">GetTemporaryDirectory</font>()+&quot;Prefs.txt&quot;)
</font></pre>

</blockquote><p><b>See Also</b></p><blockquote>

<a href="preferencegroup.html">PreferenceGroup()</a>, <a href="examinepreferencegroups.html">ExaminePreferenceGroups()</a> 

</Blockquote><p><b>Supported OS </b><Blockquote>All</Blockquote></p><center><- <a href=readpreferencestring.html>ReadPreferenceString()</a> - <a href="index.html">Preference Index</a> - <a href="removepreferencekey.html">RemovePreferenceKey()</a> -><br><br>

</body></html>